package com.xhkj.hk;


import java.util.Arrays;
import java.util.List;

import com.hikvision.artemis.sdk.kafka.config.StartConfig;
import com.hikvision.artemis.sdk.kafka.entity.enums.TopicValueEnum;
import com.hikvision.artemis.sdk.kafka.starter.VehicleKafkaStarter;

/**
 * 车辆数据启动服务
 */
public class VehicleStart {

    public void start() {
        StartConfig config = new StartConfig();
        config.setArtemisIp("20.204.11.10");
        config.setArtemisPort(443);
        config.setAppKey("21110386");
        config.setAppSecret("H4QpugRf31xJPmY0zxsH");
        List<TopicValueEnum> topics = Arrays.asList(TopicValueEnum.VEHICLE_PASS);
        config.setTopics(topics);
        config.setGroupId("test_vehicle");
        config.setDomainId("0");
        //二次识别参数设置，必传
        config.setRecognitionSign(true,true,true,true);
        config.setVehicleExecute(new VehicleExecuteHandle());
        VehicleKafkaStarter.start(config);
    }
}
